package com.example.secondhandsysapi.Service;

import com.example.secondhandsysapi.Entity.OrderInfo;
import com.example.secondhandsysapi.Vo.AwaitingShipment;
import com.github.pagehelper .PageInfo;
import org.apache.ibatis.annotations.Param;


import java.sql.Date;
import java.util.List;

public interface OrderInfoService {
    List<OrderInfo> getOrderInfo();
    List<OrderInfo> getOrderInfoByDate(String date);
    List<OrderInfo> getOrderInfoByState(String state);
    List<OrderInfo> getOrderInfoByDateAndState(String date,String state);
    PageInfo<OrderInfo> getOrderPageInfo(int pageNum, int pageSize);
    List<AwaitingShipment> getAwaitingShipmentOrderInfoByState();
    List<AwaitingShipment> getAwaitingPaymentOrderInfoByState();
    List<AwaitingShipment> getAllOrderInfoByState( );
    Integer updateDeliveryAddress(@Param("delivery_address") String delivery_address, @Param("order_id") Integer order_id);
    Integer deleteOrderInfo(@Param("order_id") Integer order_id);
    List<AwaitingShipment> getRoadingShipmentOrderInfoByState( );
    List<AwaitingShipment> getFinishingShipmentOrderInfoByState( );
    Integer updateOrderState(@Param("order_state") String order_state,@Param("order_id") Integer order_id);
    Double getMoneyByDay(Date date);
}
